package lab02.test12;

public class Circle extends Shape {

    //属性:半径radius
    double radius;

    //方法重写
    @Override
    double area() {
        return 3.14 * radius * radius;
    }

    @Override
    double perimeter() {
        return 2 * 3.14 * radius;
    }
}
